package com.sudo.dao.admin.model.bo;

import com.sudo.common.validenum.EnumValue;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author 为道日损 2020-04-27 11:36
 */
public class SysMenuBO {

    @Pattern(regexp="[0-9A-Za-z_]{3,30}",message="菜单代码必须是4~30位数字、字母或下划线")
    private String pCode;

    @NotBlank(message = "菜单名称不能为空")
    private String mName;

    @Pattern(regexp="[0-9A-Za-z_]{3,30}",message="菜单代码必须是4~30位数字、字母或下划线")
    private String mCode;

    private String mUrl;

    @EnumValue(strValues = {"ON","OFF"},message = "状态必须为指定值ON/OFF")
    private String status;
    private String mIcon;

    private Integer sort;

    @Length(max = 255,message = "备注最大长度不超过255位")
    private String note;

    public String getmCode() {
        return mCode;
    }

    public void setmCode(String mCode) {
        this.mCode = mCode;
    }

    public String getpCode() {
        return pCode;
    }

    public void setpCode(String pCode) {
        this.pCode = pCode;
    }

    public String getmName() {
        return mName;
    }

    public void setmName(String mName) {
        this.mName = mName;
    }

    public String getmUrl() {
        return mUrl;
    }

    public void setmUrl(String mUrl) {
        this.mUrl = mUrl;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getmIcon() {
        return mIcon;
    }

    public void setmIcon(String mIcon) {
        this.mIcon = mIcon;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }
}
